package com.wyh.cloud.order.feign;

import com.wyh.cloud.order.service.PaymentFallBackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import pojo.CommonResult;

/**
 * @author wyh
 * @version 1.0
 * @date 2021/11/26 10:34
 */
@Component(value = "FeignClient")
@FeignClient(value = "nacos-provider-payment",
        fallback = PaymentFallBackService.class)
public interface OrderFeignClient {

    @GetMapping(value = "/payment/findAll")
    public CommonResult findAll();
}
